import myAxios from '../MyAxios'
import urls from '../BaseUrl'

const cinemaRoomApi={
  // 新增放映厅
  add(params) {
    return myAxios.post(urls + "/cinema-room/add", params);
  },
// 查询所有放映厅类型
 queryAllTypes(){
  return myAxios.get(urls+'/cinema-room/types')
 },
 // 根据影院id 查找放映厅
 list(params){
   return myAxios.get(urls+'/cinema-rooms/cinemaid',params)
 },
//  删除放映厅
del(params){
  return myAxios.post(urls+'/cinema-room/del',params)
},
// 修改座位模板
updataSeatTemplate(params){
  return myAxios.post(urls+'/cinema-room/edit-seat-template',params)
},
// 通过id查看放映厅信息
queryById(params) { 
  return myAxios.get(urls + "/cinema-room/query", params);
},
}
export default cinemaRoomApi